<legend>
    <h4><?php
        echo $control->getAjaxLink(array('name' => '功能列表', 'id' => 'showEventList'), array(
            'cooker' => 'BAEvent@showEventList'
        ));
        ?>\
        <?php
        echo $control->getAjaxLink(array('id' => 'showCardList', 'name' => '会员卡类型'), array(
            'cooker' => 'BAMemberCard@showCardTypeList'
        ));
        ?>\
        添加卡类型       
    </h4>
</legend>
<?php
$form = $this->beginWidget('CActiveForm', array(
    "id" => "addCardForm",
    'enableAjaxValidation' => FALSE,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
        ));

$model = new BDynamicFormModel();
$cardTypeField = 'media_preCardType_choose_cardType';
$model->addField($cardTypeField);
?>
<table class="table table-hover">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <tbody>
        <tr><td> <?php echo '选择类型'; ?> </td>
            <td>
                <?php
                echo $form->dropDownList($model, $cardTypeField, BAMemberCardCooker::getPreCardTypeList(), array('required' => true));
                ?>
            </td>
        </tr>
    </tbody>
</table>

<div class="row-fluid">
    <?php
    echo $control->getAjaxLink(array('id' => 'addCardTypeInfo', 'name' => '继续添加'), array(
        'cooker' => 'BAMemberCard@showAddCardTypeInfo',
        'htmlOptions' => array('class' => 'btn ')
    ));
    ?>    

</div>

<?php
$this->endWidget();
?>